<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Home extends Front_Controller {

	//--------------------------------------------------------------------
	
	public function index() 
	{
		$this->load->model('model_updates');
		$updates = $this->model_updates->order_by('created_on', 'desc')->limit(10)->find_all();
		
		Template::set('updates', $updates);
		Template::render();
		
	}
	
	//--------------------------------------------------------------------
	

}